
import 'dart:async';
import 'dart:io';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:live_plugin/main.dart';

class LivePlugin {
  static const MethodChannel _channel =
      const MethodChannel('live_plugin');

  static Future<String?> get platformVersion async {
    final String? version = await _channel.invokeMethod('getPlatformVersion');
    return version;
  }

  ///初始化直播模块
  static void init(){
    HttpOverrides.global = new DevHttpOverrides();
  }
}
